package com.sky.mapper;

import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SetmealDishMapper {
	
	/**
	 * 根据套餐id查询菜品id
	 *
	 * @param stemealId
	 * @return
	 */
	@Select("select * from setmeal_dish where setmeal_id=#{stemealId}")
	List<SetmealDish> getSetmealDishId(Long stemealId);
	
	List<Long> getDishIds(List<Long> ids);
	
	void addSetmealDish(List<SetmealDish> setmealDishes);
	
	void deleteSetmealDish(List<Long> ids);
}
